<template>
  <div class="side-action-container">
    <ul class="action-list">
      <li v-for="item in 3" :key="item" class="action-item">
        Action {{ item }}
      </li>
    </ul>
  </div>
</template>

<script lang="ts">
import {computed, defineComponent, ref} from 'vue'
import {useLocale} from 'element-plus'
import useCurrentInstance from '@/hooks/useCurrentInstance'

export default defineComponent({
  name: 'NavigationSideAction',
  emits: [
    'click'
  ],
  setup() {
    const {proxy} = useCurrentInstance()
    const localeInject = useLocale()

    function handleClick() {
      proxy.$emit('click')
    }

    const title = computed(() => localeInject.t('base.systemTitle'))

    return {
      title,

      handleClick
    }
  }
})
</script>
<style lang="scss" scoped>
.side-action-container {
  position: relative;

  .action-list {
    display: flex;
    white-space: nowrap;

    .action-item {
      height: 100%;
      line-height: inherit;
      background-color: #eee;
      padding: 0 12px;
      margin-right: 5px;

      &:last-child {
        // margin-right: 0;
      }
    }
  }
}
</style>
